$("#login").on("click",function (event){
    event.preventDefault();
    login();
})
function login(){
    let username =  $("#no").val();
    let password = $("#password").val();

    $.ajax({
        url: "/webapi/login/user",
        data:{
            username: username,
            password: password
        }
    }).done(function (rs){
        if(rs>=0){
            //成功
            window.location.href="/home/index"
        }
        else{
            console.log(rs)
            alert("错误")
        }
    })
}


